package com.xiyu.service.enums.office.unit;

import com.xiyu.service.enums.office.space.OfficeSpaceStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 单位机构类别
*/
@Getter
@AllArgsConstructor
public enum UnitInstitutionalCategoryEnum implements IntArrayValuable {

    /**
    * 行政
    */
    ADMINISTRATION(1, "行政"),
    /**
    * 参公
    */
    PARTICIPATE(2, "参公"),
    /**
    * 事业
    */
    INSTITUTIONAL(3, "事业"),
    /**
    * 其他
    */
    OTHER(4, "其他");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(UnitInstitutionalCategoryEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(UnitInstitutionalCategoryEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
